package net.oschina.app.constant;

/**
 * Created by YL on 2017/4/1.
 */

public class Constants {
    public static String Name;
    public static String Post;
    public static String HOST = "http://" + Name + ":" + Post + "/oschina";

    public static String NewsBlog_Path = HOST + "/list/blog_list";
    public static String Favorite_Path = HOST + "/list/favorite_list";
    public static String Friends_Path = HOST + "/list/friends_list";
    public static String SoftwareDetail = HOST + "/detail/software_detail";
    public static String Information_Path = HOST + "/information/my_information.xml";
    public static String My_Active_Me_Path = HOST + "/list/active_list2/page0.xml";
    public static String My_Active_Discuss_Path = HOST + "/list/active_list3/page0.xml";
    public static String My_Active_LeaveMsg_Path = HOST + "/list/message_list/page0.xml";
    public static String My_Active_Fans_Path = HOST + "/list/active_list2/page0.xml";
    public static String My_Active_Favour_Path = HOST + "/list/my_tweet_like_list/page.xml";
    public static String End_Path = "/page0.xml";
    public static String Friends_datail_itemPath = HOST + "/list/active_list1/page0.xml";

    public static String News_Path = HOST + "/list/news/page";  //综合
    public static String News_detail_Path = HOST + "/detail/news_detail/"; //资讯详情
    public static String Events_Path = HOST + "/list/event_list/page";

    public static void refreshUrl() {
        HOST = "http://" + Name + ":" + Post + "/oschina";
        NewsBlog_Path = HOST + "/list/blog_list";
        Favorite_Path = HOST + "/list/favorite_list";
        Friends_Path = HOST + "/list/friends_list";
        SoftwareDetail = HOST + "/detail/software_detail";
        Information_Path = HOST + "/information/my_information.xml";
        My_Active_Me_Path = HOST + "/list/active_list2/page0.xml";
        My_Active_Discuss_Path = HOST + "/list/active_list3/page0.xml";
        My_Active_LeaveMsg_Path = HOST + "/list/message_list/page0.xml";
        My_Active_Fans_Path = HOST + "/list/active_list2/page0.xml";
        My_Active_Favour_Path = HOST + "/list/my_tweet_like_list/page.xml";
        Friends_datail_itemPath = HOST + "/list/active_list1/page0.xml";
        News_Path = HOST + "/list/news/page";  //综合
        News_detail_Path = HOST + "/detail/news_detail/"; //资讯详情
        Events_Path = HOST + "/list/event_list/page";
    }
}
